<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="https://code.google.com/p/rad-framework/taglib"
	xmlns:s="http://jboss.com/products/seam/taglib">

	<ui:remove>
	<s:link 
		id="#{id}"
		rendered="#{rendered}"
		styleClass="#{styleClass}"
		includePageParams="false"
		view="/jsf/#{path}#{entityName}/#{mode}.xhtml">
		<f:param name="id" value="#{key}"/>
		<ui:insert />
	</s:link>				
	</ui:remove>
		
	<h:outputLink 
		id="#{id}"
		rendered="#{rendered}"
		styleClass="#{styleClass}"
		value="#{contextPath}/#{path}#{entityName}/#{mode == 'Edit' ? 'edit/' : '' }#{key}">
		<ui:insert />
	</h:outputLink>
	
	<ui:remove>
	mimic s:link until its performance is improved
	https://jira.jboss.org/jira/browse/JBSEAM-3771
	this is closed but still not good enough...
	
	must change if url rewrite turned off
	TODO suggested change
	
	</ui:remove>

</ui:composition>